﻿using System;
using System.Collections;
using System.Collections.Generic;
using StrawberryShake;

namespace StrawberryShake
{
    [System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")]
    public partial class Queries
        : global::StrawberryShake.IDocument
    {
        private readonly byte[] _hashName = new byte[]
        {
            109,
            100,
            53,
            72,
            97,
            115,
            104
        };
        private readonly byte[] _hash = new byte[]
        {
            52,
            101,
            99,
            49,
            54,
            57,
            102,
            50,
            57,
            102,
            97,
            56,
            97,
            98,
            54,
            55,
            101,
            99,
            56,
            100,
            49,
            53,
            49,
            102,
            50,
            100,
            54,
            55,
            102,
            57,
            52,
            53
        };
        private readonly byte[] _content = new byte[]
        {
            109,
            117,
            116,
            97,
            116,
            105,
            111,
            110,
            32,
            112,
            117,
            98,
            108,
            105,
            115,
            104,
            83,
            99,
            104,
            101,
            109,
            97,
            40,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            115,
            111,
            117,
            114,
            99,
            101,
            84,
            101,
            120,
            116,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            44,
            32,
            36,
            116,
            97,
            103,
            115,
            58,
            32,
            91,
            84,
            97,
            103,
            73,
            110,
            112,
            117,
            116,
            33,
            93,
            41,
            32,
            123,
            32,
            112,
            117,
            98,
            108,
            105,
            115,
            104,
            83,
            99,
            104,
            101,
            109,
            97,
            40,
            105,
            110,
            112,
            117,
            116,
            58,
            32,
            123,
            32,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            44,
            32,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            44,
            32,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            44,
            32,
            115,
            111,
            117,
            114,
            99,
            101,
            84,
            101,
            120,
            116,
            58,
            32,
            36,
            115,
            111,
            117,
            114,
            99,
            101,
            84,
            101,
            120,
            116,
            44,
            32,
            116,
            97,
            103,
            115,
            58,
            32,
            36,
            116,
            97,
            103,
            115,
            32,
            125,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            115,
            101,
            115,
            115,
            105,
            111,
            110,
            73,
            100,
            32,
            125,
            32,
            125,
            32,
            109,
            117,
            116,
            97,
            116,
            105,
            111,
            110,
            32,
            109,
            97,
            114,
            107,
            83,
            99,
            104,
            101,
            109,
            97,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            101,
            100,
            40,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            41,
            32,
            123,
            32,
            109,
            97,
            114,
            107,
            83,
            99,
            104,
            101,
            109,
            97,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            101,
            100,
            40,
            105,
            110,
            112,
            117,
            116,
            58,
            32,
            123,
            32,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            44,
            32,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            44,
            32,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            32,
            125,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            69,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            32,
            125,
            32,
            125,
            32,
            125,
            32,
            109,
            117,
            116,
            97,
            116,
            105,
            111,
            110,
            32,
            112,
            117,
            98,
            108,
            105,
            115,
            104,
            67,
            108,
            105,
            101,
            110,
            116,
            40,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            99,
            108,
            105,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            102,
            111,
            114,
            109,
            97,
            116,
            58,
            32,
            81,
            117,
            101,
            114,
            121,
            70,
            105,
            108,
            101,
            70,
            111,
            114,
            109,
            97,
            116,
            33,
            44,
            32,
            36,
            102,
            105,
            108,
            101,
            115,
            58,
            32,
            91,
            81,
            117,
            101,
            114,
            121,
            70,
            105,
            108,
            101,
            73,
            110,
            112,
            117,
            116,
            33,
            93,
            33,
            44,
            32,
            36,
            116,
            97,
            103,
            115,
            58,
            32,
            91,
            84,
            97,
            103,
            73,
            110,
            112,
            117,
            116,
            33,
            93,
            41,
            32,
            123,
            32,
            112,
            117,
            98,
            108,
            105,
            115,
            104,
            67,
            108,
            105,
            101,
            110,
            116,
            40,
            105,
            110,
            112,
            117,
            116,
            58,
            32,
            123,
            32,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            44,
            32,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            44,
            32,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            44,
            32,
            99,
            108,
            105,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            99,
            108,
            105,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            44,
            32,
            102,
            111,
            114,
            109,
            97,
            116,
            58,
            32,
            36,
            102,
            111,
            114,
            109,
            97,
            116,
            44,
            32,
            102,
            105,
            108,
            101,
            115,
            58,
            32,
            36,
            102,
            105,
            108,
            101,
            115,
            44,
            32,
            116,
            97,
            103,
            115,
            58,
            32,
            36,
            116,
            97,
            103,
            115,
            32,
            125,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            115,
            101,
            115,
            115,
            105,
            111,
            110,
            73,
            100,
            32,
            125,
            32,
            125,
            32,
            109,
            117,
            116,
            97,
            116,
            105,
            111,
            110,
            32,
            109,
            97,
            114,
            107,
            67,
            108,
            105,
            101,
            110,
            116,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            101,
            100,
            40,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            44,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            41,
            32,
            123,
            32,
            109,
            97,
            114,
            107,
            67,
            108,
            105,
            101,
            110,
            116,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            101,
            100,
            40,
            105,
            110,
            112,
            117,
            116,
            58,
            32,
            123,
            32,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            58,
            32,
            36,
            101,
            120,
            116,
            101,
            114,
            110,
            97,
            108,
            73,
            100,
            44,
            32,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            115,
            99,
            104,
            101,
            109,
            97,
            78,
            97,
            109,
            101,
            44,
            32,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            58,
            32,
            36,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            32,
            125,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            101,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            69,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            32,
            125,
            32,
            125,
            32,
            125,
            32,
            115,
            117,
            98,
            115,
            99,
            114,
            105,
            112,
            116,
            105,
            111,
            110,
            32,
            111,
            110,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            68,
            111,
            99,
            117,
            109,
            101,
            110,
            116,
            40,
            36,
            115,
            101,
            115,
            115,
            105,
            111,
            110,
            73,
            100,
            58,
            32,
            83,
            116,
            114,
            105,
            110,
            103,
            33,
            41,
            32,
            123,
            32,
            111,
            110,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            68,
            111,
            99,
            117,
            109,
            101,
            110,
            116,
            58,
            32,
            111,
            110,
            80,
            117,
            98,
            108,
            105,
            115,
            104,
            83,
            99,
            104,
            101,
            109,
            97,
            40,
            115,
            101,
            115,
            115,
            105,
            111,
            110,
            73,
            100,
            58,
            32,
            36,
            115,
            101,
            115,
            115,
            105,
            111,
            110,
            73,
            100,
            41,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            105,
            115,
            67,
            111,
            109,
            112,
            108,
            101,
            116,
            101,
            100,
            32,
            105,
            115,
            115,
            117,
            101,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            46,
            46,
            46,
            32,
            73,
            115,
            115,
            117,
            101,
            32,
            125,
            32,
            125,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            73,
            115,
            115,
            117,
            101,
            32,
            111,
            110,
            32,
            73,
            115,
            115,
            117,
            101,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            116,
            121,
            112,
            101,
            32,
            99,
            111,
            100,
            101,
            32,
            109,
            101,
            115,
            115,
            97,
            103,
            101,
            32,
            102,
            105,
            108,
            101,
            32,
            108,
            111,
            99,
            97,
            116,
            105,
            111,
            110,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            99,
            111,
            108,
            117,
            109,
            110,
            32,
            108,
            105,
            110,
            101,
            32,
            115,
            116,
            97,
            114,
            116,
            32,
            101,
            110,
            100,
            32,
            125,
            32,
            114,
            101,
            115,
            111,
            108,
            117,
            116,
            105,
            111,
            110,
            32,
            125,
            32,
            102,
            114,
            97,
            103,
            109,
            101,
            110,
            116,
            32,
            69,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            78,
            97,
            109,
            101,
            32,
            111,
            110,
            32,
            69,
            110,
            118,
            105,
            114,
            111,
            110,
            109,
            101,
            110,
            116,
            32,
            123,
            32,
            95,
            95,
            116,
            121,
            112,
            101,
            110,
            97,
            109,
            101,
            32,
            110,
            97,
            109,
            101,
            32,
            125
        };

        public ReadOnlySpan<byte> HashName => _hashName;

        public ReadOnlySpan<byte> Hash => _hash;

        public ReadOnlySpan<byte> Content => _content;

        public static Queries Default { get; } = new Queries();

        public override string ToString() => 
            @"mutation publishSchema($externalId: String!, $schemaName: String!, $environmentName: String!, $sourceText: String, $tags: [TagInput!]) {
              publishSchema(input: { externalId: $externalId, schemaName: $schemaName, environmentName: $environmentName, sourceText: $sourceText, tags: $tags }) {
                sessionId
              }
            }
            
            mutation markSchemaPublished($externalId: String!, $schemaName: String!, $environmentName: String!) {
              markSchemaPublished(input: { externalId: $externalId, schemaName: $schemaName, environmentName: $environmentName }) {
                environment {
                  ... EnvironmentName
                }
              }
            }
            
            mutation publishClient($externalId: String!, $schemaName: String!, $environmentName: String!, $clientName: String!, $format: QueryFileFormat!, $files: [QueryFileInput!]!, $tags: [TagInput!]) {
              publishClient(input: { externalId: $externalId, schemaName: $schemaName, environmentName: $environmentName, clientName: $clientName, format: $format, files: $files, tags: $tags }) {
                sessionId
              }
            }
            
            mutation markClientPublished($externalId: String!, $schemaName: String!, $environmentName: String!) {
              markClientPublished(input: { externalId: $externalId, schemaName: $schemaName, environmentName: $environmentName }) {
                environment {
                  ... EnvironmentName
                }
              }
            }
            
            subscription onPublishDocument($sessionId: String!) {
              onPublishDocument: onPublishSchema(sessionId: $sessionId) {
                isCompleted
                issue {
                  ... Issue
                }
              }
            }
            
            fragment Issue on Issue {
              type
              code
              message
              file
              location {
                column
                line
                start
                end
              }
              resolution
            }
            
            fragment EnvironmentName on Environment {
              name
            }";
    }
}
